<?php
$dashboard = array(
        array('url' => '/admin/product/read'             , 'icon-name' => 'icon-01.jpg'            , 'label' => 'Product'),
        array('url' => '/admin/product-category/read'    , 'icon-name' => 'icon-03.jpg'            , 'label' => 'Product category'),
        array('url' => '/admin/enquire/read'          , 'icon-name' => 'icon-13.jpg'            , 'label' => 'Enquire'),
        array('url' => '/admin/contact/read'          , 'icon-name' => 'icon-10.jpg'            , 'label' => 'Contact'),
        array('url' => '/admin/customer/read'         , 'icon-name' => 'icon-11.jpg'            , 'label' => 'Customer'),
        array('url' => '/admin/order/read'            , 'icon-name' => 'icon-12.jpg'            , 'label' => 'Order'),
        array('url' => '/admin/article/read'          , 'icon-name' => 'icon-08.jpg'            , 'label' => 'Article'),
        array('url' => '/admin/site-info/read'         , 'icon-name' => 'icon-21.jpg'            , 'label' => 'Site info'),
        array('url' => '/admin/site-setting/read'      , 'icon-name' => 'icon-22.jpg'            , 'label' => 'Site setting'),
        array('url' => '/admin/support/read'          , 'icon-name' => 'icon-23.jpg'            , 'label' => 'Customer support'),
        array('url' => '/admin/slide-show/gallery'          , 'icon-name' => 'icon-24.jpg'            , 'label' => 'Gallery'),
        array('url' => '/admin/user/read'             , 'icon-name' => 'icon-19.jpg'            , 'label' => 'User'),
        array('url' => '/admin/user-group/read'       , 'icon-name' => 'icon-20.jpg'            , 'label' => 'User group')
        );
?>

<div class="mainpage">
    <div class="row-fluid">
        <div class="span3">
            <div id="datepicker">
            </div>
        </div>
        <div class="span9">
            <?php foreach($dashboard as $k => $v): ?>
            <div class="dashboard-item">
                <a href="<?= $v['url']; ?>">
                   <img src="/resources/back-end/images/icon-dashboard/<?= $v['icon-name'] ?>" class="dashboard-icon" />
                    <span><?= $v['label'] ?></span>
                </a>
            </div>
            <?php endforeach; ?>
        </div>
        <div class="clear"></div>
    </div>
</div>

<script>
$('#datepicker').datepicker();
</script>